package cn.itsource.pethome.controller;


import cn.itsource.pethome.domain.Employee;
import cn.itsource.pethome.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("employee")
public class EmployeeController {

    @Autowired
    EmployeeService employeeService;
     /************************接口四要素模板*****************************
      * 方法:
      * 请求方式: findAll
      * 请求地址: get
      * 请求参数:{}
      * 相应参数: JsonResult
      * @author maizi
      * @date 2023/10/8 16:39
      * @param
      * @return
      *****************************************************************/
     @GetMapping("findAll")
     public List<Employee> findAll(){
         return  employeeService.findAll();
     }


}
